package com.nd.android.u.filestoragesystem.business.bean;

import com.nd.android.u.filestoragesystem.externalInterface.FileConstant.DoType;
import com.nd.android.u.filestoragesystem.externalInterface.IInterActionAttr;


/**
 * 互动属性（赞，收藏，评论）
 * 
 * <br>Created 2014-6-19 上午11:53:36
 * @version  
 * @author   huangszh		
 *
 * @see
 */
public class InterActionAttr implements IInterActionAttr{

    private static final long serialVersionUID = 1L;

    private int mPraises; // 赞数量
    
    private boolean mPraised; // 是否赞
     
    private int mFavorties; // 收藏数量
    
    private boolean mFavorited; // 是否收藏
    
    private int mReplys; // 评论数

    @Override
    public void setPraised(int praised) {
        if(praised == DoType.HAS_DO) {
            mPraised = true;
        } else {
            mPraised = false;
        }
    }

    @Override
    public boolean getPraised() {
        
        return mPraised;
    }

    @Override
    public void setPraises(int praises) {
      
        mPraises = praises;
    }

    @Override
    public int getPraises() {
        
        return mPraises;
    }

    @Override
    public void setFavortied(int favortied) {
        if(favortied == DoType.HAS_DO) {
            mFavorited = true;
        } else {
            mFavorited = false;
        }
    }

    @Override
    public boolean getFavorited() {
        
        return mFavorited;
    }

    @Override
    public void setFavorties(int favorties) {
        
        mFavorties = favorties;
    }

    @Override
    public int getFavorites() {
        
        return mFavorties;
    }

    @Override
    public void setReplys(int replys) {
        
        mReplys = replys;
    }

    @Override
    public int getReplys() {
        
        return mReplys;
    }

    @Override
    public void setPraised(boolean praised) {
        
        mPraised = praised;
    }

    @Override
    public void setFavortied(boolean favortied) {
        
        mFavorited = favortied;
    }

//	@Override
//	public long getId() {
//		// TODO Auto-generated method stub
//		return 0;
//	}
//
//	@Override
//	public int getStatus() {
//		// TODO Auto-generated method stub
//		return 0;
//	}

}
